import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
const routes = [
  {
    path: '*',
    redirect: '/home'
  },
  {
    path: '/home',
    component: () => import('../views/Home/index.vue')
  },
  {
    path: '/goods_cate',
    component: () => import('../views/goods_cate')
  },
  {
    path: '/user',
    component: () => import('../views/user')
  },
  {
    path: '/cart',
    component: () => import('../views/cart')
  },
  // 领优惠卷
  {
    path: "/pages/users/user_get_coupon/index",
    component: () => import('../views/News/Newlist/newlist.vue')
  }
]

const router = new VueRouter({
  mode: "hash",
  routes
})
export default router